<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
div p {
	font-size: 20px;
	font-weight: bold;
}

ul li {
	list-style: none;
	height: 30px;
}

input[type="text"] {
	width: 260px;
}

input[type="password"] {
	width: 260px;
}

input[type="submit"] {
	text-align: center;
	background-color: blueviolet;
	width: 70px;
	height: 30px;
}

ul li span {
	color: red;
}
</style>
<script type="text/javascript">
	function doCheck() {
		var name = document.getElementById("txtUsername").value;
		var pwd = document.getElementById("txtPassword").value;

		if (name.length <= 0 || pwd.length <= 0) {
			alert("请填写完整！");
			return false
		}
		return true
	}
</script>
</head>
<body>
	<form method="post" action="RegisterInfo.jsp"
		onsubmit="return doCheck()">
		<div style="text-align: center;">
			<p>请输入注册信息</p>
			<ul>
				<li>用户名：<input type="text" name="txtUsername" id="txtUsername"><span>*</span></li>
				<li>密　码：<input type="password" name="txtPassword"
					id="txtPassword"><span>*</span></li>
				<li>信息来源：<label><input name="Msg" type="checkbox"
						value="报刊" />报刊 </label> <label><input name="Msg" type="checkbox"
						value="网络" />网络 </label> <label><input name="Msg" type="checkbox"
						value="朋友推荐" />朋友推荐 </label> <label><input name="Msg"
						type="checkbox" value="电视" />电视 </label>
				</li>
				<li><input type="submit" value="注册"></li>
			</ul>
		</div>

	</form>
</body>
</html>